/*
 * datastructure.h
 *
 *  Created on: 2009. 5. 12
 *      Author: neogeo94
 */

#ifndef DATASTRUCTURE_H_
#define DATASTRUCTURE_H_

#include <iostream>
#include <cstdio>

class CVertex {
public:
	double x;
	double y;
	double z;

	CVertex* next;

	CVertex();
	~CVertex();

};

class CPolyline {
public:
	bool type;
	int vertexCount;

	CPolyline* next;
	CVertex* Vertexs;

	CPolyline();
	~CPolyline();

	int AddVertex();
	int AddVertex(double xx, double yy);
	int CheckType();

};

class CEntities {
public:

	CPolyline* Polylines;
	int polylineCount;
	int cpolylineCount;

	CEntities();
	~CEntities();

	int AddPolyline();
};

#endif /* DATASTRUCTURE_H_ */
